//
//  AuthorModal.m
//  AloTruyen
//
//  Created by vominhthong on 10/11/14.
//  Copyright (c) 2014 Khoai Nguyen Minh. All rights reserved.
//

#import "AuthorModal.h"

@implementation AuthorModal
-(instancetype)initAuthorWithParams:(NSDictionary *)params{
    if (self = [super init]) {
        self.authorType = Str4Fmt(@"%@", params[@"author_type"]);
        self.nameAuthor = params[@"name"];
        self.avatarURL = params[@"avatar_url"];
        self.bookCount = Str4Fmt(@"%@", params[@"book_count"]);
        self.bookImage = params[@"book_image"];
        self.downloadCounts = Str4Fmt(@"%@", params[@"download_counts"]);
        self.idAuthor = Str4Fmt(@"%@", params[@"id"]);
    }
    return self;
}
@end
